<?php
session_start();
$productID=$_GET['productID'];
if(isset($_SESSION['cart'][$productID])){
unset($_SESSION['cart'][$productID]);
	if(count($_SESSION['cart'])==0)
	{
		header("Location:index.php");
	}else{
	header("Location:cart.php");
	}
}
exit();
?>